import { UPDATE_PROPS_SHOP_DECORATION } from '@/utils/Const';
import { FactoryStore } from '@/hooks';

export let updatePropsShopDecoration = () => {
	let { mutation } = FactoryStore({
		namespaced : 'shopDecoration',
		mutationsMethod : [UPDATE_PROPS_SHOP_DECORATION]
	});

	return (payload, ismobile = true) => {
		let row = {
			ismobile,
			defaultProps : payload
		};
		mutation[UPDATE_PROPS_SHOP_DECORATION](row);
	};
};
